
/***************************************************************************
**
** Copyright 锟�002 by Hellosoft Inc. All rights reserved. No part
** of this publication, or any software included with it, may be
** reproduced, stored in a retrieval system, or transmitted in
** any form or by any other means, including photocopying,
** electronic or mechanical recording or otherwise, without
** prior written permission of the copyright holder
**
** Hellosoft Confidential and Proprietary information
**
** File			: cntrl_ap_main.c
**
** Start Date	: Fri Jan 4 2002
**
** Email		: wlan-nw@hyd.hellosoft.com
**
** Abstract		: This file Implements functionality of AP
**				  generates beacon for infrastructure network
**		 		  used to initialize all the STA parameters
**
***************************************************************************/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "hs_types.h"
#include "mac_debug.h"
#include "wlan_const.h"
#include "hw_rx_list.h"
#include "wlan_types.h"
#include "wlan_phy_mac.h"
#include "protocol_engine.h"
#include "enc_dec_mac.h"
#include "wlan_mgt.h"
#include "mac_timer.h"
#include "dpram_main.h"
#include "isr.h"
#include "memtest.h"
#include "PmdGlobals.h"

#include "uart_msg.h"
#include "wlan_phy_uart.h"

//hs_uint8_t msg_type;                                /* uart command mode*/
extern hs_uint8_t uart_ctl_msg[UART_CTL_LEN];
extern hs_uint8_t phy2uart_ctl_msg[UART_CTL_LEN];
extern hs_uint8_t uart_payload_msg[MAX_PAYLOAD_SIZE];
hs_uint8_t msg_type;
hs_uint32_t uart_mode_set_global;

/*
 *	Name				: init_AP_global_variables
 *
 *	Description			: initializes AP global variables
 *
 *	Input Parameters	: -NIL-
 *
 *	Output Parameters	: -NIL-
 *
 *	Return Value		: HS_INT32 (MGT_SUCCESS, MGT_FAILURE)
 *
 */
HS_INT32
init_AP_global_variables(HS_VOID)
{

}

/*
 *	Name				: init_STA
 *
 *	Description			: initializes STA parameters and free memory pools for SME MLME
 *
 *	Input Parameters	: -NIL-
 *
 *	Output Parameters	: -NIL-
 *
 *	Return Value		: HS_INT32 (MGT_SUCCESS, MGT_FAILURE)
 *
 */
HS_INT32
init_STA(HS_VOID)
{

	return MAC_SUCCESS;
}

/*
 *	Name				: STA_main
 *
 *	Description			: polls the SME, MLME, MAC transmit handler and MAC receive handler
 *
 *	Input Parameters	: -NIL-
 *
 *	Output Parameters	: -NIL-
 *
 *	Return Value		: HS_VOID
 *
 */
HS_VOID*
STA_main(HS_VOID *STA_main_temp)
{

    while(1) {

        /* In the absence of any hardware interrupt, MAC is polling PHY regularly
           to see if any phy interrupt is generated. sbvr
        */

	}
}
